import {get,post} from './index'
// 封装一个新人专享
export const getNew = ()=> get('/getnew')
//封装一个首页商品信息
export const getGoodsHome = ()=> get('/getindexgoods')
// 封装一个秒杀接口
export const getseckill = ()=> get('/getseckill')
// 封装一个优惠券接口
export const getcoupon = ()=> get('/getcoupon')

//封装一个获取我的页面 轮播图信息
export const getMineBanner = () => get('/getbanner')

//封装一个 注册接口
export const Register = data => post('/register', data)
//封装一个 登录接口
export const Loginin = data =>post('/login',data)
// 封装分类接口
export const getCate = ()=>get("/getcate")
// 封装分类商品、
export const getGoods = ()=>get("/getgoods")
// 封装详情接口
export const getGoodsInfo =(params)=>get('/getgoodsinfo',params)
//购物车列表
export const getCart = params=> get('/cartlist',params)
//购物车删除
export const getCartdelete = data =>post('/cartdelete',data)

//添加购物车
export const postCartadd =(data)=>post('/cartadd',data)

//封装一个首页商品信息
export const getList = ()=> get('/getgoods')
